package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserPoolMapper;
import com.ruoyi.system.domain.UserPool;
import com.ruoyi.system.service.IUserPoolService;

/**
 * poolService业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-27
 */
@Service
public class UserPoolServiceImpl implements IUserPoolService 
{
    @Autowired
    private UserPoolMapper userPoolMapper;

    /**
     * 查询pool
     * 
     * @param userId pool主键
     * @return pool
     */
    @Override
    public UserPool selectUserPoolByUserId(String userId)
    {
        return userPoolMapper.selectUserPoolByUserId(userId);
    }

    /**
     * 查询pool列表
     * 
     * @param userPool pool
     * @return pool
     */
    @Override
    public List<UserPool> selectUserPoolList(UserPool userPool)
    {
        return userPoolMapper.selectUserPoolList(userPool);
    }

    /**
     * 新增pool
     * 
     * @param userPool pool
     * @return 结果
     */
    @Override
    public int insertUserPool(UserPool userPool)
    {
        return userPoolMapper.insertUserPool(userPool);
    }

    /**
     * 修改pool
     * 
     * @param userPool pool
     * @return 结果
     */
    @Override
    public int updateUserPool(UserPool userPool)
    {
        return userPoolMapper.updateUserPool(userPool);
    }

    /**
     * 批量删除pool
     * 
     * @param userIds 需要删除的pool主键
     * @return 结果
     */
    @Override
    public int deleteUserPoolByUserIds(String[] userIds)
    {
        return userPoolMapper.deleteUserPoolByUserIds(userIds);
    }

    /**
     * 删除pool信息
     * 
     * @param userId pool主键
     * @return 结果
     */
    @Override
    public int deleteUserPoolByUserId(String userId)
    {
        return userPoolMapper.deleteUserPoolByUserId(userId);
    }
}
